// pages/totalSign/totalSign.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: 'http://192.168.1.6:8080/WeChatJSON//totalSignByDept',
      data:{
        deptno: options.deptno
      },
      method:'GET',
      header:{
        'content-type': 'application/json'
      },
      success:function(res){
        console.log(res)
        that.setData({
          list:res.data
        })
      }
    })
  },

})